package com.my.coolq.strategy.message.model;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
/**
 * 群消息
 * @author ch
 *
 */
public class GroupMsg implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7381181398146918289L;

	/**
	 * 上报类型
	 */
	private String post_type;
	
	/**
	 * 消息类型
	 */
	private String message_type;

	
	private Long group_id;
	
	/**
	 * 发送者 QQ 号
	 */
	private Long user_id;
	
	/**
	 * 匿名用户显示名
	 */
	private String anonymous;
	
	/**
	 * 匿名用户 flag，在调用禁言 API 时需要传入
	 */
	private String anonymous_flag;
	
	/**
	 * 消息内容
	 */
	private String message;

	public String getPost_type() {
		return post_type;
	}

	public void setPost_type(String post_type) {
		this.post_type = post_type;
	}

	public String getMessage_type() {
		return message_type;
	}

	public void setMessage_type(String message_type) {
		this.message_type = message_type;
	}

	public Long getGroup_id() {
		return group_id;
	}

	public void setGroup_id(Long group_id) {
		this.group_id = group_id;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public String getAnonymous() {
		return anonymous;
	}

	public void setAnonymous(String anonymous) {
		this.anonymous = anonymous;
	}

	public String getAnonymous_flag() {
		return anonymous_flag;
	}

	public void setAnonymous_flag(String anonymous_flag) {
		this.anonymous_flag = anonymous_flag;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}

}
